﻿using System;

using Fuse8.DomainFramework.Domain;

using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters;

namespace Fuse8.ContentManagementFramework.Domain.Commands
{
    public abstract class CmsTemplateSelectOneCommand : BaseEntityParameterCommand<CmsTemplate, CmsTemplateSelectOneCommandParameter>
    {
        public override string CacheKey
        {
            get
            {
                return string.Format("TemplateId_{0};SiteGroup_{1};Site_{2}",
                    CommandParameter.TemplateId,
                    CommandParameter.SiteGroupId,
                    CommandParameter.SiteId);
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsTemplateSelectOneCommand";
            }
        }
    }
}
